package com.qyhl.module_practice.substreet.fragment_new;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeListBean;

import java.util.List;

public class SubStreetNewPresenter implements SubStreetNewContract.SubStreetNewPresenter {
    private SubStreetNewContract.SubStreetNewView mView;
    private SubStreetNewModel mModel;

    public SubStreetNewPresenter(SubStreetNewContract.SubStreetNewView mView) {
        this.mView = mView;
        this.mModel = new SubStreetNewModel(this);
    }


    @Override
    public void getList(String id, String type, String page) {
        mModel.getList(id, type, page);
    }

    @Override
    public void doSearch(String key, String type) {
        mModel.doSearch(key, type);
    }

    @Override
    public void setList(List<PracticeListBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setSearch(List<PracticeListBean> beanList) {
        mView.setSearch(beanList);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
